<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改推送记录信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-deToOaRecord-edit" th:object="${record}">
            <input name="recordId" th:field="*{recordId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">仪表板ID：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${record.resourceId}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">仪表板名称：</label>
                <div class="col-sm-8">
					<div class="form-control-static" th:text="${record.resourceName}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">接收人工号：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${record.loginIdList}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">推送标题：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${record.title}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">推送内容：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${record.context}"></div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">推送状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('de_to_oa_record_status')}">
                        <input type="radio" th:id="${'status_' + dict.dictCode}" name="status" th:value="${dict.dictValue}" th:field="*{status}" disabled>
                        <label th:for="${'status_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">推送成功：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${#dates.format(record.createTime, 'yyyy-MM-dd HH:mm:ss')}"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <div class="form-control-static" th:text="${record.remark}"></div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "detooa/deToOaRecord";
        $("#form-deToOaRecord-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-deToOaRecord-edit').serialize());
            }
        }
    </script>
</body>
</html>